package com.lei.sqlGoodsJsp.entity;

import java.util.List;

public class Page<T> {
	/**
	 * 有多少条数据
	 */
	private int count;
	/**
	 * 一共有多少页
	 */
	private int totalPage;
	/**
	 * 当前页
	 */
	private int currentPage;
	
	/**
	 * 数据
	 */
	private List<T> data;

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public Page(int count, int totalPage, int currentPage, List<T> data) {
		super();
		this.count = count;
		this.totalPage = totalPage;
		this.currentPage = currentPage;
		this.data = data;
	}

	public Page() {
		super();
	}

}
